/* 遮罩层 */
.cm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-wrapper {
    width: 80%;
    max-width: 300px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 场景一：有标题无内容 */
.cm-wrapper.has-title.no-content .cm-header {
    padding: 48px 24px 48px;
}

/* 场景二：有标题有内容 */
.cm-wrapper.has-title.has-content .cm-header {
    padding: 32px 24px 16px;
}

.cm-wrapper.has-title.has-content .cm-body {
    padding: 0 24px 32px;
}

/* 场景三：无标题有内容 */
.cm-wrapper.no-title.has-content .cm-body {
    padding: 32px 24px 32px;
}

/* 标题区 */
.cm-header {
    text-align: center;
}

.cm-title {
    font-size: 17px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.9);
}

/* 内容区 */
.cm-body {
    text-align: center;
}

.cm-body-text {
    font-size: 17px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
}

/* 按钮区公共样式 */
.cm-footer {
    display: flex;
    padding: 0 16px 16px;
}

/* 确认按钮 */
.cm-btn.cm-ok {
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #FFFFFF;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 0;
}

/* 单按钮布局 */
.cm-1 .cm-btn {
    flex: 1;
}

/* 双按钮布局 */
.cm-2 .cm-btn {
    flex: 1;
    text-align: center;
}

.cm-2 .cm-cancel {
    border: none;
    background: rgb(244, 244, 244);
    height: 44px;
    line-height: 44px;
    margin-right: 16px;
    border-radius: 0;
}

.cm-2 .cm-btn-text {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

.cm-3 {
    display: flex;
    flex-direction: column;

    .cm-cancel,
    .cm-other {
        margin-top: 12px;
        background: rgb(244, 244, 244);
        color: 17px;
        font-weight: bold;
    }
}

/* 三按钮布局 */
.cm-3 .cm-btn {
    text-align: center;
    width: 100%;
    height: 44px;
    line-height: 44px;
}

/* 确认按钮文字加粗 */
.cm-ok-text {
    font-weight: bold;
    color: #FFFFFF !important;
}

.wx-button:after {
    border: none !important;
}